<%-- 
    Document   : edituser
    Created on : Aug 1, 2014, 2:45:25 PM
    Author     : THANMINH
--%>

<%@page import="model.enetities.UserProfile"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Edit Page</title>
    </head>
    <body>
        <%
            UserProfile user = new UserProfile();
            user = (UserProfile) request.getAttribute("finduser");
            if (user != null) {
        %>
        <form action="editUser" method="POST">
        <table border="0">
            <thead>
                <tr>
                    <th>Id User</th>
                    <th><input type="text" name="iduser" value="<%= user.getIdUser()%>" readonly="readonly" /></th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Full Name</td>
                    <td><input type="text" name="fullname" value="<%=user.getFullName()%>" readonly="readonly" /></td>

                </tr>
                <tr>
                    <td>DOB</td>
                    <td><input type="text" name="DOB" value="<%= user.getDateOfBirth()%>" readonly="readonly" /></td>
                </tr>
                <tr>
                    <td>Gender</td>
                    <td><input type="text" name="gender" value="<%= user.isGender()%>" readonly="readonly" /></td>
                </tr>
                <tr>
                    <td>homeTown</td>
                    <td><input type="text" name="hometown" value="<%= user.getHomeTown()%>" /></td>
                </tr>
                <tr>
                    <td>School</td>
                    <td><input type="text" name="school" value="<%= user.getSchool()%>"  /></td>
                </tr>
                <tr>
                    <td>Mobile</td>
                    <td><input type="text" name="mobile" value="<%= user.getMobile()%>"  /></td>
                </tr>
                <tr>
                    <td>Email</td>
                    <td><input type="text" name="email" value="<%= user.getEmail()%>"  /></td>
                </tr>
                <tr>
                    <td>Strength</td>
                    <td><input type="text" name="strength" value="<%= user.getStrengths()%>"  /></td>
                </tr>
                <tr>
                    <td>Language</td>
                    <td><input type="text" name="language" value="<%= user.getLanguages()%>"  /></td>
                </tr>
                <tr>
                    <td>Image</td>
                    <td><input type="text" name="image" value="<%= user.getImage()%>"  /></td>
                </tr>
                <tr>
                    <td>About</td>
                    <td><input type="text" name="about" value="<%= user.getAbout()%>"  /></td>
                </tr>
                <tr>
                    <td>Favorite Quotations</td>
                    <td><input type="text" name="favoriteQuotations" value="<%= user.getFavoriteQuotations()%>"  /></td>
                </tr>
                <tr>
                    <td>facebookLink</td>
                    <td><input type="text" name="facebookLink" value="<%= user.getFacebookLink()%>" /></td>
                </tr>                
            </tbody>
        </table>
                <input type="submit" value="Edit" name="edit"/>
                <input type="submit" value="Cancel" name="edit" />
    </form>
        <% }%>        
    </body>
</html>
